package com.ranga.mselfcare.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class Transaction implements Parcelable {

	private String id;
	private String requester;
	private String receiver;
	private String previousCredit;
	private String amount;
	private String date;
	private int method;
	
	
	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}

	public String getRequester() {
		return requester;
	}


	public void setRequester(String requester) {
		this.requester = requester;
	}


	public String getReceiver() {
		return receiver;
	}


	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}


	public String getPreviousCredit() {
		return previousCredit;
	}


	public void setPreviousCredit(String previousCredit) {
		this.previousCredit = previousCredit;
	}


	public String getAmount() {
		return amount;
	}


	public void setAmount(String amount) {
		this.amount = amount;
	}


	public String getDate() {
		return date;
	}


	public void setDate(String date) {
		this.date = date;
	}


	public int getMethod() {
		return method;
	}


	public void setMethod(int method) {
		this.method = method;
	}


	public Transaction(Parcel in) {
		requester = in.readString();
		receiver = in.readString();
		previousCredit = in.readString();
		amount = in.readString();
		date = in.readString();
		method = in.readInt();
	}
	public Transaction() {
		
	}
	
	
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(requester);
		dest.writeString(receiver);
		dest.writeString(previousCredit);
		dest.writeString(amount);
		dest.writeString(date);
		dest.writeInt(method);
	}
	
	public static final Parcelable.Creator<Transaction> CREATOR = new Parcelable.Creator<Transaction>() {
		public Transaction createFromParcel(Parcel in) {
			return new Transaction(in);
		}

		public Transaction[] newArray(int size) {
			return new Transaction[size];
		}
	};

}
